package com.zmzncs.lmtc.module.order.pojo.order_Info;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 客户-信息
 * </p>
 *
 * @author 高博文
 * @since 2020-09-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("order_info")
@ApiModel(value="OrderInfo对象", description="客户-信息")
public class OrderInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "订单号")
    private String orderCode;

    @ApiModelProperty(value = "客户id")
    private Long customerId;

    @ApiModelProperty(value = "车牌号")
    private String carNumber;

    @ApiModelProperty(value = "停车场id")
    private String parkId;

    @ApiModelProperty(value = "进场时间")
    private Date inTime;

    @ApiModelProperty(value = "出场时间")
    private Date outTime;

    @ApiModelProperty(value = "支付时间")
    private Date payTime;

    @ApiModelProperty(value = "实际停车时长（小时）")
    private Integer realParkDuration;

    @ApiModelProperty(value = "计费停车时长（小时）")
    private Integer chargeParkDuration;

    @ApiModelProperty(value = "应收金额")
    private BigDecimal receivableAmount;

    @ApiModelProperty(value = "实收金额")
    private BigDecimal paidAmount;

    @ApiModelProperty(value = "会员卡id")
    private Long cardId;

    @ApiModelProperty(value = "支付类型（1：月租卡，2：定制卡，3：时长卡，4现金）")
    private Integer payType;

    @ApiModelProperty(value = "会员卡类型（1：月租卡，2：时长卡，3：其他，4：没有使用会员卡）")
    private Integer cardType;

    @ApiModelProperty(value = "订单状态（1：已入场待支付，2：已支付待出场，3：已支付已出场，4：已出场未支付）")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "删除标志：1：是   0：否")
    private Boolean isDeleted;


}
